package com.ruoyi.jjyh.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单商品表对象 jjyh_order_goods
 * 
 * @author ruoyi
 * @date 2020-11-25
 */
public class JjyhOrderGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单商品表 */
    private String id;

    /** 订单id */
    @Excel(name = "订单id")
    private String orderId;

    /** 商品id */
    @Excel(name = "商品id")
    private String goodsId;

    /** 商品id */
    @Excel(name = "商品id")
    private String goodsTitle;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 数量 */
    @Excel(name = "数量")
    private Long num;

    /** 分类 1换入  2换出 */
    @Excel(name = "分类 1换入  2换出")
    private String type;

    /** 商品归属人id */
    @Excel(name = "商品归属人id")
    private String userId;

    private String goodsPic;

    private String goodsType;// 1换出 主动 0换入 被动

    public String getGoodsTitle() {
        return goodsTitle;
    }

    public void setGoodsTitle(String goodsTitle) {
        this.goodsTitle = goodsTitle;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    /** 商品归属人id */
    @Excel(name = "商品归属人id")
    private String userName;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setOrderId(String orderId) 
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }
    public void setGoodsId(String goodsId) 
    {
        this.goodsId = goodsId;
    }

    public String getGoodsId() 
    {
        return goodsId;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setNum(Long num) 
    {
        this.num = num;
    }

    public Long getNum() 
    {
        return num;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createTime", getCreateTime())
            .append("orderId", getOrderId())
            .append("goodsId", getGoodsId())
            .append("price", getPrice())
            .append("num", getNum())
            .append("type", getType())
            .append("userId", getUserId())
            .toString();
    }

    public String getGoodsPic() {
        return goodsPic;
    }

    public void setGoodsPic(String goodsPic) {
        this.goodsPic = goodsPic;
    }

    public String getGoodsType() {
        return goodsType;
    }

    public void setGoodsType(String goodsType) {
        this.goodsType = goodsType;
    }
}
